<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<title>影院集合</title>
<t:base type="jquery,easyui,tools"></t:base>
	<script src="plug-in/jquery/jquerysession.js" type="text/javascript"></script>
<script type="text/javascript">
function dbClick(index,data){
    window.parent.$('.ui_state_highlight')[0].click();
    var datas = $("#cinemaLists").datagrid("getSelections");
    var id = datas[0].id;
    var name = datas[0].name;
    $("#cinemaName",top.myWindow.document).val(name);
    frameElement.api.close();
}
function onCli() {

    var datas = $("#cinemaLists").datagrid("getSelections");
    var id = datas[0].id;
    var name = datas[0].name;
    $("#cinemaName",top.myWindow.document).val(name);
    // frameElement.api.close();
}
</script>

<div class="easyui-layout" fit="true">
	<div region="center" style="padding:1px;">
<t:datagrid name="cinemaLists" title="影院列表"  actionUrl="zyCinemaController.do?datagridOfChooseCmOfContact"
            queryMode="group" idField="id" checkbox="false" showRefresh="false" onDblClick="dbClick" onClick="onCli">
	<t:dgCol title="id" field="id" hidden="true"></t:dgCol>
	<t:dgCol title="影院名称" field="name" width="100" 	queryMode="single" query="true" ></t:dgCol>
    <t:dgCol title="省市" field="province.territoryName" width="100" sortable="false" hidden="true" queryMode="single" query="true"></t:dgCol>
</t:datagrid>
	</div>
</div>
<script type="text/javascript">
	$(function () {
        territoryLink("cinemaLists","province.territoryName",1);
    })
</script>

